package cn.chengpengper.seckill.reservation.application.service;

import cn.chengpengper.seckill.reservation.application.command.SeckillReservationConfigCommand;
import cn.chengpengper.seckill.reservation.domain.model.entity.SeckillReservationConfig;

import java.util.List;

public interface SeckillReservationService {
    /**
     * 保存预约配置
     */
    boolean saveSeckillReservationConfig(SeckillReservationConfigCommand seckillReservationConfigCommand);

    /**
     * 更新预约配置
     */
    boolean updateSeckillReservationConfig(SeckillReservationConfigCommand seckillReservationConfigCommand);

    /**
     * 更新配置状态
     */
    boolean updateConfigStatus(Integer status, Long goodsId);

    /**
     * 获取配置列表
     */
    List<SeckillReservationConfig> getConfigList(Long version);

    /**
     * 获取配置详情
     */
    SeckillReservationConfig getConfigDetail(Long goodsId, Long version);
}
